/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.util;

import org.jdom.Element;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;

/**
 *
 * @author sergio.valdez
 */
public class WriterUtil {
    private static XMLOutputter out;

    static {
        out = new XMLOutputter(Format.getPrettyFormat());
    }

    public static String getString(Element element){
        return out.outputString(element);
    }

    public static String getString(Element element, boolean prettyFormat){
        return out.outputString(element);
    }
}
